//
//  KSAsyncRun.m
//  BasketBallLeagues
//
//  Created by kenshin on 4/24/17.
//  Copyright © 2017 kenshin. All rights reserved.
//

#import "KSAsyncRun.h"


void KSAsyncRun(KSRun run) {
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void) {
        run();
    });
}

void KSAsyncRunInMain(KSRun run) {
    dispatch_async(dispatch_get_main_queue(), ^(void) {
        run();
    });
}

